﻿using Stee.CAP8.Saga.Sample.Order.DTO;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Stee.CAP8.Saga.Sample.Order.Persistence.Repository
{
    public interface IOrderRepository
    {
        Task<DataResponseObject<Entities.Order>> GetOrderById(int id);
        Task<DataResponseObject<IEnumerable<Entities.Order>>> GetOrders();

        Task<DataResponseObject<Entities.Order>> CreateOrder(Entities.Order order);

        Task<DataResponseObject<Entities.Order>> UpdateOrderStatus(int id, Status status);
    }
}
